package com.personalblog.mapper;

import com.personalblog.po.Type;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author jxau_scf
 * @date 2021/3/23 - 20:58
 */
@Repository
public interface TypeMapper {
    int insertType(Type type);
    int deleteType(int typeId);
    int updateType(Type type);
    Type findTypeById(int typeId);
    Type findTypeByName(String typeName);
    List<Type> findTypes();
    List<Type> findTypesFetchBlogs();
}
